import ajax from './request';

//获取验证码
const captcha = (param) => ajax.get("/captcha/sent", { params: param })
//手机登录
const loginByPhone = (param) => ajax.get("/login/cellphone", { params: param })
//热门歌单分类
const playList_hot_bar = () => ajax.get("/playlist/hot");
//热门歌单
const playList_hot = (params) => ajax.get("/top/playlist", { params });
//检查手机号是否注册
const checkPhone = (params) => ajax.get("/cellphone/existence/check", { params });
//注册手机号
const register = (params) => ajax.get("/register/cellphone", { params });
//获取歌单所有歌曲
const playList_all = (params) => ajax.get("/playlist/track/all", { params });
// 获取音乐url
const songUrl = (params) => ajax.get("/song/url/v1", { params });

//排行榜
const topList = () => ajax.get("/toplist");
//获取排行榜|歌曲详情
const goDetail = (params) => ajax.get("/playlist/detail", { params });
// 搜索建议
const suggest = (params) => ajax.get("/search/suggest", { params });
export {
  captcha, loginByPhone, playList_hot, playList_hot_bar, checkPhone, register,
  playList_all, songUrl, topList, goDetail, suggest
};

